//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package org.come.Frame;

import java.awt.Color;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import javax.swing.BorderFactory;
import javax.swing.JComponent;
import javax.swing.JInternalFrame;
import javax.swing.plaf.basic.BasicInternalFrameUI;
import org.come.Jpanel.LingMsgJpanel;
import org.come.until.FormsManagement;
import org.come.until.Music;

public class LingMsgJframe extends JInternalFrame implements MouseListener {
	private LingMsgJpanel jpanel = new LingMsgJpanel();

	public static LingMsgJframe getLingMsgJpanel() {
		return (LingMsgJframe)FormsManagement.getInternalForm(45).getFrame();
	}

	public LingMsgJframe() {
		this.add(this.jpanel);
		this.setBackground(new Color(0, 0, 0, 0));
		this.setBorder(BorderFactory.createEmptyBorder());
		((BasicInternalFrameUI)this.getUI()).setNorthPane((JComponent)null);
		this.setBounds(0, 0, 470, 310);
		this.pack();
		this.setVisible(false);
		this.setDefaultCloseOperation(3);
		this.addMouseListener(this);
	}

	@Override
    public void mouseClicked(MouseEvent e) {
	}

	@Override
    public void mousePressed(MouseEvent e) {
		Music.addyinxiao("关闭窗口.mp3");
		if (e.isMetaDown()) {
			FormsManagement.HideForm(45);
		} else {
			FormsManagement.Switchinglevel(45);
		}

	}

	@Override
    public void mouseReleased(MouseEvent e) {
	}

	@Override
    public void mouseEntered(MouseEvent e) {
	}

	@Override
    public void mouseExited(MouseEvent e) {
	}

	public LingMsgJpanel getJpanel() {
		return this.jpanel;
	}

	public void setJpanel(LingMsgJpanel jpanel) {
		this.jpanel = jpanel;
	}
}
